mapBothNonNull

inline fun <D, T : Any> ReadWriteProperty<D, T?>.mapBothNonNull(crossinline both: (T) -> T): ReadWriteProperty<D, T?>

Map reads from and writes to a delegate if the value is non-null

Sources

js source
Link copied to clipboard